#include "base64_ut.hpp"
#include "base64.h"
#include <iostream>
#include <iterator>

TEST_F(Base64UnitTest, Encode_001)
{
    const char *cipher = (const char *)base64_encode((VOS_UINT8 *)"123456");
    std::cout << cipher << std::endl;
    EXPECT_STREQ("MTIzNDU2", cipher);
}
TEST_F(Base64UnitTest, Decode_001)
{
    const char *cipher = (const char *)base64_decode((VOS_UINT8 *)"MTIzNDU2");
    std::cout << cipher << std::endl;
    EXPECT_STREQ("123456", (const char *)cipher);
}
